package com.tangyuan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.common.result.Result;
import com.tangyuan.model.User;
import com.tangyuan.model.Movies;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.model.Video;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 小梁
 * @since 2020-12-03
 */
public interface MovieService extends IService<Movies> {

     /**
      * 得到总的推荐
      */
     List<Movies> getRecommend(Long userId,Integer index,Integer pageSize);

     List<Movies> getConcern(Long userId,Integer pageNum,Integer pageSize);

    Page<Video> getMovieByRecord(Integer pageNum, Integer pageSize, User user);

    Result getItemRecommend(Long userId, Integer index);

    List<Movies> getSameCity(Long userId, BigDecimal cityCode, BigDecimal latitude, Integer pageNum,Integer pageSize);

    Movies getMoviesById(Long movieId);

}
